// 业务文件
import request from '@/utils/request'

/**
 * 测试 请求能否成功
 * @returns
 */
export const getAllChannels = () => {
  return request({
    method: 'get',
    url: '/v1_0/channels',
  })
}

/**
 * 登录
 * @param {*} mobile 
 * @param {*} code 
 * @returns 
 */
 export const ml_login = (mobile, code) => {
  return request({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code,
    },
  })
}
